package com.rxyb.security.db.po.custom;

import lombok.Data;
import org.springframework.security.core.GrantedAuthority;

/**
 * @author YJH
 * @version 1.0
 * @description 菜单
 * @date 2020/7/7 15:36
 */
@Data
public class MenuRole implements GrantedAuthority {

    private Integer id;

    // 菜单名称
    private String menuName;

    // 菜单描述
    private String menuDesc;

    // url
    private String menuUrl;

    // pid
    private Integer pid;

    // 图标
    private String menuIcon;

    // 权限管理
    private String menuAlias;

    @Override
    public String getAuthority() {
        return menuName;
    }
}
